package com.atnjupt.threadlocal;

/**
 * @author Wizarder
 * @create 2021-06-15 18:01
 */
public class OrderService {
    public void createOrder(){
        String name = Thread.currentThread().getName();
        System.out.println("OrderService 当前线程的[" + name + "]中保存的数据是:" + ThreadLocalTest.data.get(name));
        new OrderDao().saveOrder();
    }
}
